<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>input和change事件</title>
	</head>
	<body>
		<input type="text" 
		oninput="console.log('用户输入了')"/>
		<br/>
		<!-- change事件触发条件：失去焦点、前后内容不一样 -->
		<input type="text"
		onchange="console.log('内容发生变化')"/>
		<br/>
		<select onchange="console.log('选项切换了')">
			<option>选项1</option>
			<option>选项2</option>
		</select>
	</body>
</html>